//! 测试文件读取

use std::fs::File;
use std::io::{BufReader, BufRead};

pub fn test() {
    let file = File::open("src/main.rs").expect("file not found.");
    let buf_reader = BufReader::new(file);

    for line in buf_reader.lines() {
        println!("{}", line.unwrap());
    }
}